package com.zcl.springboot.hello.mapper;

import com.zcl.springboot.hello.bean.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository("hellomapper")
public interface HelloMapper {
    User getUserInfo(@Param("name") String name, @Param("password") String password);
    @Insert("insert into user(id,user_name,password) values(#{id},#{userName},#{password})")
    void insertUser(User user);
}
